package com.java;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

/**
 * @Author: ZhangJin
 * @Date: 2020/9/6 22:14
 * 入口
 */


@Slf4j
@SpringBootApplication
@EnableAsync
@EnableScheduling
@ComponentScan(basePackages = {"com"})
public class SparkApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SparkApplication.class, args);
    }

}
